package com.ocom.common.request.web;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ConsumeDetailPageRequest {

    @JsonProperty("comId")
    @NotNull(message = "comId 不能为空")
    private Long comId;

    @NotNull(message = "merchId 不能为空")
    private Long merchId;

    @NotBlank(message = "startTime 不能为空")
    private String startTime;

    @NotBlank(message = "endTime 不能为空")
    private String endTime;

    @JsonProperty(value = "page")
    @NotNull(message = "page 不能为空")
    private Integer page;

    @NotNull(message = "size 不能为空")
    @JsonProperty(value = "size")
    private Integer size;
}
